<?php

namespace App\Controller\My;


use App\Controller\BaseController;
use App\Services\My\InviteService;
use Hyperf\Context\Context;
use Hyperf\Di\Annotation\Inject;

class InviteController extends BaseController
{

    #[Inject]
    public InviteService $inviteService;

    /**
     * Note - 个人中心-分享赚钱
     * DateTime 2024/8/13 17:20
     * User Admin
     */
    public function inviteList()
    {
        $userInfo = Context::get('user');
        $params = $this->request->post();
        return $this->return($this->inviteService->inviteList($userInfo['id'], $params));

    }

}